<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>渐变背景</title>
    <link rel="stylesheet" href="./index2.css">
    <style>
        .box{
            width: 400px;
            height: 300px;
            border: 1px solid black;
            margin-bottom: 30px;
            margin: 0 auto;
            margin-top: 50px;
        }
        .box2{
            background-image:radial-gradient(red,yellow,green);
        }
        .box3{
            background-image:repeating-linear-gradient(orange ,tomato, cadetblue) ;
        }
        .box1 {
            background-image:linear-gradient(30deg, blue,yellowgreen,purple);
        }
        html, body {
            background-image: url(https://p.qqan.com/up/2020-10/16030984182548078.jpg) ;
        } 
        .top-nav {
            background-color: rgba(100, 148, 237, 0.283);
        }
        .next a {
            color: black;
        }
    </style>
</head>
<body>
    <div class="top-nav">
        <ul>
            <li><a href="./css样式一.html">css样式一</a></li>
            <li><a href="./盒子模型.html">选择器与盒子</a></li>
            <li><a href="./天龙八部.html">格式化文本</a></li>
            <li><a href="./奖状1.html">制作奖状</a></li>
        </ul>
    <div class="box1 box"></div>
    <div class="box2 box"></div>
    <div class="box3 box"></div>
    <div class="next"><a target="_blank" href="./精灵图.html">点我去精灵图</a></div>
</body>
</html>